<template>
  <section>
    <div class="content-module">
      <label>{{title}}</label>
      <el-tag v-if="tagView"
              class="ml10">{{tagLabel}}</el-tag>
    </div>
  </section>
</template>

<script>
export default {
  name: "ModuleTitle",
  props: {
    title: String,
    tagLabel: String,
    tagView: [Number, Boolean]
  }
}
</script>

<style lang="scss" scoped>
.ml10 {
  margin-left: 10px;
}
.content-module {
  background-color: var(--prev-border-color-extra-grey);
  display: flex;
  justify-content: flex-start;
  padding: 10px;
}
</style>